# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

"""Pink Command.

This module is really used for backup only if the pinkpy CLI cannot import this for you.
This can be used by running "python pink". This module is not ran when the CLI can
successfully import commands for you.
"""

from cleo import Application

from . import (
    MigrateCommand,
    MigrateRollbackCommand,
    MigrateRefreshCommand,
    MakeMigrationCommand,
    MakeModelCommand,
    MakeModelDocstringCommand,
    MakeObserverCommand,
    MigrateStatusCommand,
    MigrateResetCommand,
    MakeSeedCommand,
    SeedRunCommand,
    ShellCommand,
)

application = Application("ORM Version:", 0.1)

application.add(MigrateCommand())
application.add(MigrateRollbackCommand())
application.add(MigrateRefreshCommand())
application.add(MakeMigrationCommand())
application.add(MakeModelCommand())
application.add(MakeModelDocstringCommand())
application.add(MakeObserverCommand())
application.add(MigrateResetCommand())
application.add(MigrateStatusCommand())
application.add(MakeSeedCommand())
application.add(SeedRunCommand())
application.add(ShellCommand())

if __name__ == "__main__":
    application.run()
